cmake_minimum_required(VERSION 3.10)

set(projectName demo)

project(${projectName})

if(ENABLE_COVERAGE)
  message(STATUS "Use gcov for code coverage test")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")
endif()

add_compile_options(-Wall -Werror 
# -Wextra # 暂时可以不开，校验太敏感
)

add_subdirectory(source/core)
add_subdirectory(source/plat)
add_subdirectory(source/main)
add_subdirectory(source/executor)
add_subdirectory(source/exam)
add_subdirectory(source/prac)
add_subdirectory(source/routes)
add_subdirectory(source/leetcode)
add_subdirectory(source/codekata)
